﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Mate.Dto.Good
{
    public class GoodCategoryTreeModel
    {
        public int id { get; set; }
        /// <summary>
        /// Desc:上级分类ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? parentid { get; set; }

        /// <summary>
        /// Desc:分类名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string name { get; set; }

        /// <summary>
        /// Desc:分类图片地址
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string img { get; set; }

        /// <summary>
        /// Desc:1 启用 2 禁用
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? is_open { get; set; }


        private IList<GoodCategoryTreeModel> _children;
        /// <summary>
        /// 子类型
        /// </summary>
        public IList<GoodCategoryTreeModel> children
        {
            get { return _children ?? (_children = new List<GoodCategoryTreeModel>()); }
            set { _children = value; }
        }
    }
}
